package com.wyp.design.principle.liskovsubstitution.example1;

/**
 * @author: yipeng.wang01@hand-china.com-25490
 * @TIME: 2019/12/26/11:11
 **/
public class Square extends Rectangle {
    private Integer wideLength;

    public Integer getWideLength() {
        return wideLength;
    }

    public void setWideLength(Integer wideLength) {
        this.wideLength = wideLength;
    }

    @Override
    public Integer getWidth() {
        return this.wideLength;
    }

    @Override
    public void setWidth(Integer width) {
        wideLength = width;
    }

    @Override
    public Integer getLength() {
        return wideLength;
    }

    @Override
    public void setLength(Integer length) {
        wideLength = length;
    }
}
